<?php
App::uses('AppModel', 'Model');
/**
 * Fee Model
 */
class Fee extends AppModel {
/**
 * associations
 *
 * @var array
 */
  var $belongsTo = array(
      'FeeType' => array(
         'className' => 'FeeType',
         'foreignKey' => 'fee_type_id',
         'conditions' => '',
         'order' => '',
         'limit' => '',
         'dependent' => false
      )
   );

  var $hasMany = array(
      'TransactionItem' => array(
          'className' => 'TransactionItem',
          'foreignKey' => 'fee_id',
          'conditions' => '',
          'fields' => '',
          'order' => ''
      ),
      'StudentServiceRequest' => array(
          'className' => 'StudentServiceRequest',
          'foreignKey' => 'fee_id',
          'conditions' => '',
          'fields' => '',
          'order' => ''
      )
  );

    public function save($data = null,$validate = true, $fieldList = array()) {
        $s = $this->sanitize($data);
        return parent::save($s);
    }
    
}